#include <stdio.h>
#include "../../src/gtthread.h"

char g_str[] = "hello world\n";

gtthread_t g_th1, g_th2;

void* worker(void* arg)
{
	gtthread_t tid = gtthread_self();

	if(gtthread_equal(g_th1, tid))
		printf("same\n");
}

int main()
{
	volatile int i=0;

	gtthread_init(1000);

	gtthread_create(&g_th1, worker, NULL);

	gtthread_join(g_th1, NULL);
}
